home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNADIM.IN_ / oemnadim.inf
INI File  |  1996-07-12  |  22KB  |  575 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     MCA
  5. [Options]
  6.     EE16MC
  7. [FileConstants]
  8. UtilityInf      = "UTILITY.INF"
  9. subroutineinf   = "SUBROUTN.INF"
  10. SoftwareType    = "driver"
  11. Exit_Code       = 0
  12. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  13. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  14. EE16MC_1BYTE    = 139
  15. EE16MC_2BYTE    = 98
  16. NETCARD_ID      = 25227
  17. Manufacturer    = "Microsoft"
  18. ProductMajorVersion     = "4"
  19. ProductMinorVersion     = "0"
  20. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  21. ProductSoftwareName     = "Ee16mc"
  22. ProductSoftwareImagePath = "\SystemRoot\system32\drivers\ee16.sys"
  23. NetRuleSoftwareType     = "ee16mcSys ndisDriver ee16mcDriver"
  24. NetRuleSoftwareUse      = $(SoftwareType)
  25. NetRuleSoftwareBindForm = """Ee16mcSys"" yes no container"
  26. NetRuleSoftwareClass    = {"ee16mcDriver basic"}
  27. NetRuleSoftwareBindable = {"ee16mcDriver ee16mcAdapter non exclusive 100"}
  28. ProductHardwareName     = "Ee16mc"
  29. NetRuleHardwareType     = "ee16mc ee16mcAdapter"
  30. NetRuleHardwareBindForm = " yes yes container"
  31. NetRuleHardwareClass    = {"ee16mcAdapter basic"}
  32. ProductOpSupport     = 132 
  33. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  34. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  35. [GeneralConstants]
  36. from      = ""
  37. to        = ""
  38. ExitCodeOk     = 0
  39. ExitCodeCancel = 1
  40. ExitCodeFatal  = 2
  41. KeyNull         = ""
  42. MAXIMUM_ALLOWED   = 33554432
  43. RegistryErrorIndex = NO_ERROR
  44. KeyProduct      = ""
  45. KeyParameters   = ""
  46. TRUE            = 1
  47. FALSE           = 0
  48. NoTitle            = 0
  49. ExitState   = "Active"
  50. OldVersionExisted = $(FALSE)
  51. DriverPath      = $(!STF_NTPATH)\drivers
  52. [date]
  53.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  54. [Identify]
  55.     read-syms Identification
  56.     set Status     = STATUS_SUCCESSFUL
  57.     set Identifier = $(OptionType)
  58.     set Media      = #("Source Media Descriptions", 1, 1)
  59.     Return $(Status) $(Identifier) $(Media)
  60. [ReturnOptions]
  61.     set Status        = STATUS_FAILED
  62.     set OptionList     = {}
  63.     set OptionTextList = {}
  64.     set LanguageList = ^(LanguagesSupported, 1)
  65.     Ifcontains(i) $($0) in $(LanguageList)
  66.         ifstr(i) $($1) == ""
  67.            goto returnoptions
  68.         endif
  69.         set PlatformList = ^(PlatformsSupported, 1)
  70.         Ifcontains(i) $($1) in $(PlatformList)
  71.            goto returnoptions
  72.         else
  73.            set Status = STATUS_NOTSUPPORTED
  74.            goto finish_ReturnOptions
  75.         endif
  76.     else
  77.         set Status = STATUS_NOLANGUAGE
  78.         goto finish_ReturnOptions
  79.     endif
  80. returnoptions = +
  81.     set OptionList     = ^(Options, 1)
  82.     set OptionTextList = ^(OptionsText$($0), 1)
  83.     set Status         = STATUS_SUCCESSFUL
  84. finish_ReturnOptions = +
  85.     Return $(Status) $(OptionList) $(OptionTextList)
  86. [InstallOption]
  87.     set Option   = $($1)
  88.     set SrcDir   = $($2)
  89.     set AddCopy  = $($3)
  90.     set DoCopy   = $($4)
  91.     set DoConfig = $($5)
  92.     set LanguageList = ^(LanguagesSupported, 1)
  93.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  94.         Return STATUS_NOLANGUAGE
  95.     endif
  96.     Debug-Output "OEMNADIM.INF: STF_CWDIR is: "$(!STF_CWDIR)
  97.     Debug-Output "OEMNADIM.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  98.     set-subst LF = "\n"
  99.     read-syms GeneralConstants
  100.     read-syms FileConstants
  101.     read-syms DialogConstants$(!STF_LANGUAGE)
  102.     read-syms FileConstants$(!STF_LANGUAGE)
  103.     detect date
  104.     set-title  $(FunctionTitle)
  105.     set to   = Begin
  106.     set from = Begin
  107.     set CommonStatus = STATUS_SUCCESSFUL
  108.     EndWait
  109. Begin = +
  110.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  111.         set StartLabel = removeadapter
  112.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  113.         set StartLabel = UpgradeSoftware
  114.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  115.         set StartLabel = bindingadapter
  116.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  117.         set CommonStatus = STATUS_REBOOT
  118.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  119.             Debug-Output "Cannot configure the elink II driver software."
  120.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  121.         else
  122.             Debug-Output "Cannot configure the elink II adapter card."
  123.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  124.         endif
  125.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  126.             Debug-Output "ShellCode error: cannot get an error string."
  127.             goto ShellCodeError
  128.         endif
  129.         set Error = $($R0)
  130.         set from = end
  131.         set to = end
  132.         goto nonfatalinfo
  133.     else
  134.         set StartLabel = installadapter
  135.         set OEM_ABANDON_OPTIONS = {}
  136.         set OEM_ABANDON_SOFTWARE = FALSE
  137.         set OEM_ABANDON_ON = TRUE
  138.     endif
  139.     set from = $(fatal)
  140.     set to = $(fatal)
  141.     goto $(StartLabel)
  142. installadapter = +
  143.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  144.     Ifstr $(KeyProduct) != $(KeyNull)
  145.         CloseRegKey $(KeyProduct)
  146.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  147.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  148.                $(ProductVersion)
  149.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  150.                Debug-Output "ShellCode error: cannot get an error string."
  151.                goto ShellCodeError
  152.            endif
  153.            goto end
  154.         else
  155.            Shell $(UtilityInf), CardExistedDlg
  156.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  157.                Debug-Output "ShellCode error: cannot get an error string."
  158.                goto ShellCodeError
  159.            endif
  160.            ifstr(i) $($R1) != "OK"
  161.                Set CommonStatus = STATUS_USERCANCEL
  162.                goto end
  163.            endif
  164.            set OldVersionExisted = $(TRUE)
  165.         endif
  166.     endif
  167.     goto nextstep
  168. configureadapter = +
  169.     set Error = "Configure: Not Implmemented yet"
  170.     goto fatal
  171. nextstep = +
  172.     StartWait
  173. installproduct = +
  174.     Shell $(UtilityInf), MCAFindBus, $(EE16MC_1BYTE), $(EE16MC_2BYTE)
  175.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  176.         goto ShellCodeError
  177.     endif
  178.     ifstr $($R0) != "NO_ERROR"
  179.         set Error = $($R0)
  180.         goto fatal
  181.     endif
  182.     ifstr(i) $($R1) == {}
  183.         set Error = $(CANNOT_FIND_ANY_CARD)
  184.         set CommonStatus = STATUS_USERCANCEL
  185.         set from = "end"
  186.         goto nonfatal
  187.     endif
  188.     set AdapterList = $($R1)
  189.     ifint $(OldVersionExisted) == $(FALSE)
  190.         ifstr(i) $(!NTN_InstallMode) == "install"
  191.            Ifstr(i) $(DoCopy) == "YES"
  192.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  193.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  194.                   Goto ShellCodeError
  195.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  196.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  197.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  198.                       goto ShellCodeError
  199.                   endif
  200.                   set Error = $($R0)
  201.                   Goto fatal
  202.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  203.                   Goto successful
  204.               Endif
  205.               Set SrcDir = $($R1)
  206.            Endif
  207.            install "Install-Option"
  208.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  209.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  210.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  211.                   goto ShellCodeError
  212.               endif
  213.               set Error = $($R0)
  214.               goto fatal
  215.            endif
  216.         endif
  217.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  218.             $(ProductSoftwareName), +
  219.             $(ProductSoftwareName), +
  220.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  221.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  222.             $(NetEventDLL)
  223.         Set OEM_ABANDON_SOFTWARE = TRUE
  224.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  225.             goto ShellCodeError
  226.         endif
  227.         set RegistryErrorIndex = $($R0)
  228.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  229.             EndWait
  230.             CloseRegKey $($R1)
  231.             CloseRegKey $($R2)
  232.             CloseRegKey $($R3)
  233.             CloseRegKey $($R4)
  234.             CloseRegKey $($R5)
  235.             goto fatalregistry
  236.         endif
  237.         Set SoftProductKey      = $($R1)
  238.         Set SoftNetRuleKey      = $($R2)
  239.         Set SoftServiceKey      = $($R3)
  240.         Set SoftParameterKey    = $($R4)
  241.         Set SoftLinkageKey      = $($R5)
  242.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  243.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  244.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  245.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  246.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  247.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  248.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  249.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  250.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  251.             goto ShellCodeError
  252.         endif
  253.         set RegistryErrorIndex = $($R0)
  254.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  255.             EndWait
  256.             CloseRegKey $(SoftProductKey)
  257.             CloseRegKey $(SoftNetRuleKey)
  258.             CloseRegKey $(SoftServiceKey)
  259.             CloseRegKey $(SoftParameterKey)
  260.             CloseRegKey $(SoftLinkageKey)
  261.             goto fatalregistry
  262.         endif
  263.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  264.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  265.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  266.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  267.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  268.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  269.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  270.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  271.             goto ShellCodeError
  272.         endif
  273.         set RegistryErrorIndex = $($R0)
  274.         CloseRegKey $(SoftProductKey)
  275.         CloseRegKey $(SoftNetRuleKey)
  276.         CloseRegKey $(SoftServiceKey)
  277.         CloseRegKey $(SoftParameterKey)
  278.         CloseRegKey $(SoftLinkageKey)
  279.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  280.             EndWait
  281.             goto fatalregistry
  282.         endif
  283.     endif
  284.     ForListDo $(AdapterList)
  285.         set BusNum = *($($),1)
  286.         set SlotNum = *($($),2)
  287.         Debug-Output $(BusNum)
  288.         Debug-Output $(SlotNum)
  289.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  290.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  291.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  292.             goto ShellCodeError
  293.         endif
  294.         ifstr $($R0) != "NO_ERROR"
  295.             set Error = $($R0)
  296.             goto fatal
  297.         endif
  298.         ifstr(i) $($R1) != "YES"
  299.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  300.                 ifint $($R4) != -1
  301.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  302.                 endif
  303.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  304.                     goto ShellCodeError
  305.                 endif
  306.                 set RegistryErrorIndex = $($R0)
  307.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  308.                     EndWait
  309.                     CloseRegKey $($R1)
  310.                     CloseRegKey $($R2)
  311.                     CloseRegKey $($R3)
  312.                     goto fatalregistry
  313.                 endif
  314.                 Set HardNetCardKey      = $($R1)
  315.                 Set HardNetRuleKey      = $($R2)
  316.                 Set HardParameterKey    = $($R3)
  317.                 set AdapterNumber       = $($R4)
  318.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  319.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  320.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  321.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  322.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  323.                                    {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  324.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  325.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  326.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  327.                     goto ShellCodeError
  328.                 endif
  329.                 set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  330.                                 {BusType,$(NoTitle),$(!REG_VT_DWORD),3},+
  331.                                 {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  332.                                 {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  333.                                 {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  334.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  335.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  336.                     goto ShellCodeError
  337.                 endif
  338.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  339.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  340.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  341.                                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  342.                                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  343.                                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  344.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  345.                 CloseRegKey $(HardNetCardKey)
  346.                 CloseRegKey $(HardNetRuleKey)
  347.                 CloseRegKey $(HardParameterKey)
  348.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  349.                     goto ShellCodeError
  350.                 endif
  351.          endif
  352.     EndForListDo
  353.     goto writeparameters
  354. writeparameters = +
  355.     EndWait
  356.     goto successful
  357. bindingadapter =+
  358.     set Error = "Binding: Not Implmemented yet"
  359.     goto fatal
  360. removeadapter = +
  361.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  362.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  363.             $(ProductSoftwareName)
  364.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  365.             Debug-Output "ShellCode error"
  366.             goto ShellCodeError
  367.         endif
  368.         set RegistryErrorIndex = $($R0)
  369.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  370.             goto fatalregistry
  371.         endif
  372.     else
  373.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  374.             $(ProductSoftwareName), $(!NTN_RegBase)
  375.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  376.             Debug-Output "ShellCode error"
  377.             goto ShellCodeError
  378.         endif
  379.         set RegistryErrorIndex = $($R0)
  380.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  381.             goto fatalregistry
  382.         endif
  383.     endif
  384.     goto end
  385. UpgradeSoftware = +
  386.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  387.     Ifstr $(KeyProduct) != $(KeyNull)
  388.         install "Install-Update"
  389.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  390.             goto fatal
  391.         endif
  392.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  393.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  394.         CloseRegKey $(KeyProduct)
  395.     else
  396.         goto fatalregistry
  397.     endif
  398.     set iSearch = 1
  399. nextnetcard = +
  400.     Shell $(UtilityInf), FindNextNetworkCard, $(ProductHardwareName), $(iSearch)
  401.     set KeyNetcard = $($R0)
  402.     set iSearch = $($R1)
  403.     Debug-Output "OemNadEp.Inf: FindNextNetworkCard "$(KeyNetcard)","$(iSearch)
  404.     Ifstr $(KeyNetcard) != $(KeyNull)
  405.         Debug-Output "OemNadEp.Inf: Setting OperationsSupport value"
  406.         SetRegValue $(KeyNetcard) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  407.         CloseRegKey $(KeyNetcard)
  408.         goto nextnetcard
  409.     Endif
  410.     goto end
  411. successful = +
  412.     goto end
  413. abandon = +
  414.     ForListDo $(OEM_ABANDON_OPTIONS)
  415.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  416.             $(ProductSoftwareName), $($)
  417.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  418.             Debug-Output "ShellCode error"
  419.             goto ShellCodeError
  420.         endif
  421.         set RegistryErrorIndex = $($R0)
  422.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  423.             goto fatalregistry
  424.         endif
  425.     EndForListDo
  426.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  427.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  428.             $(ProductSoftwareName), FALSE
  429.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  430.             Debug-Output "ShellCode error"
  431.             goto ShellCodeError
  432.         endif
  433.         set RegistryErrorIndex = $($R0)
  434.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  435.             goto fatalregistry
  436.         endif
  437.     endif
  438.     goto end
  439. warning = +
  440.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  441.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  442.         goto ShellCodeError
  443.     endif
  444.     ifstr(i) $($R1) == "OK"
  445.         goto $(to)
  446.     else-ifstr(i) $($R1) == "CANCEL"
  447.         goto $(from)
  448.     else
  449.         goto "end"
  450.     endif
  451. nonfatalinfo = +
  452.     Set CommonStatus = STATUS_USERCANCEL
  453.     Set Severity = STATUS
  454.     goto nonfatalmsg
  455. nonfatal = +
  456.     Set Severity = NONFATAL
  457.     goto nonfatalmsg
  458. nonfatalmsg = +
  459.     ifstr(i) $(Error) == ""
  460.         Set Severity = NONFATAL
  461.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  462.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  463.             goto ShellCodeError
  464.         endif
  465.         set Error = $($R0)
  466.     endif
  467.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  468.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  469.         goto ShellCodeError
  470.     endif
  471.     ifstr(i) $($R1) == "OK"
  472.         goto $(from)
  473.     else
  474.         goto "end"
  475.     endif
  476. fatalregistry = +
  477.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  478.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  479.         goto ShellCodeError
  480.     endif
  481.     set Error = $($R0)
  482.     goto fatal
  483. fatal = +
  484.     ifstr(i) $(Error) == ""
  485.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  486.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  487.             goto ShellCodeError
  488.         endif
  489.         set Error = $($R0)
  490.     endif
  491.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  492.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  493.         goto ShellCodeError
  494.     endif
  495.     goto setfailed
  496. ShellCodeError = +
  497.     set DlgType      = "MessageBox"
  498.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  499.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  500.     set STF_MB_TYPE  = 1
  501.     set STF_MB_ICON  = 3
  502.     set STF_MB_DEF   = 1
  503.     ui start "Error Message"
  504.     goto setfailed
  505. setfailed = +
  506.     set CommonStatus = STATUS_FAILED
  507.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  508.         set OEM_ABANDON_ON = FALSE
  509.         goto abandon
  510.     endif
  511.     goto end
  512. end = +
  513.     goto term
  514. term = +
  515.     Return $(CommonStatus)
  516. [Install-Option]
  517.     set STF_VITAL = ""
  518.     ifstr(i) $(AddCopy) == "YES"
  519.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  520.     endif
  521.     ifstr(i) $(DoCopy) == "YES"
  522.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  523.        CopyFilesInCopyList
  524.     endif
  525.     ifstr(i) $(DoConfig) == "YES"
  526.     endif
  527.     Exit
  528. [Install-Update]
  529.    set STF_VITAL        = ""
  530.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  531.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  532.    exit
  533. [Source Media Descriptions]
  534.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  535. [Signature]
  536.     FileType = MICROSOFT_FILE
  537. [GetSignature]
  538.     read-syms Signature
  539.     return $(FileType)
  540. [ProductType]
  541. STF_PRODUCT  = LanmanNT
  542. STF_PLATFORM = I386
  543. [Files-Inf]
  544. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  545. [Files-EE16MC]
  546. 1,EE16.SYS , SIZE=999
  547. [LanguagesSupported]
  548.     ENG
  549. [OptionsTextENG]
  550.     EE16MC     = "Intel Ether Express MCA Adapter"
  551. [FileConstantsENG]
  552. ProCaption   = "Windows NT Setup"
  553. ProCancel    = "Cancel"
  554. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  555.                "Are you sure you want to cancel copying files?"
  556. ProCancelCap = "Network Setup Message"
  557. ProText1     = "Copying:"
  558. ProText2     = "To:"
  559. FunctionTitle   = "Intel Ether Express MCA Adapter Card Setup"
  560. ProductSoftwareDescription      = "Intel Ether Express MCA Adapter Driver"
  561. ProductHardwareDescription      = "Intel Ether Express MCA Adapter"
  562. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  563. ProductSoftwareTitle    = "Intel Ether Express MCA Adapter Driver"
  564. ProductHardwareTitle    = "Intel Ether Express MCA Adapter"
  565. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  566. ShellCodeErrorText      = "Shell Code Error."
  567. [DialogConstantsENG]
  568. Help        = "&Help"
  569. Exit        = "Cancel"
  570. OK          = "OK"
  571. HelpContext = ""
  572. Continue    = "C&ontinue"
  573. Cancel      = "C&ancel"
  574. [FileDependentDlgENG]
  575.